package com.eunion.web.cms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 注册码明细
 */
@Entity
@Table(name = "t_register_code_datail")
@NamedQuery(name = "TRegisterCodeDatail.findAll", query = "SELECT t FROM TRegisterCodeDatail t")
public class TRegisterCodeDatail {
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    
    /** 注册码id **/
    private String codeid;
    
    /** 转让者id **/
    private String formuserid;
    
    /** 受让者id **/
    private Integer touserid;
    
    private Date createtime;
    
    private Date updatetime;
    
    @Transient
    private Integer status;
    
    @Transient
    private String code;
    
    @Transient
    private String usercode;

    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getCodeid() {
        return codeid;
    }
    
    public void setCodeid(String codeid) {
        this.codeid = codeid;
    }

    public String getFormuserid() {
        return formuserid;
    }
    
    public void setFormuserid(String formuserid) {
        this.formuserid = formuserid;
    }
    
    public Integer getTouserid() {
        return touserid;
    }
    
    public void setTouserid(Integer touserid) {
        this.touserid = touserid;
    }
    
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    
    public Date getUpdatetime() {
        return updatetime;
    }
    
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public TRegisterCodeDatail() {
        super();
    }

    public TRegisterCodeDatail(Integer id, String codeid, String formuserid, Integer touserid, Date createtime, Date updatetime, Integer status, String code, String usercode) {
        super();
        this.id = id;
        this.codeid = codeid;
        this.formuserid = formuserid;
        this.touserid = touserid;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.status = status;
        this.code = code;
        this.usercode = usercode;
    }

    @Override
    public String toString() {
        return "TRegisterCodeDatail [id=" + id + ", codeid=" + codeid + ", formuserid=" + formuserid + ", touserid=" + touserid + ", createtime=" + createtime + ", updatetime=" + updatetime
               + ", status=" + status + ", code=" + code + ", usercode=" + usercode + "]";
    }

}
